package router

import (
	"jslog/service/share"

	"github.com/gin-gonic/gin"
)

func NoVerifyRouter(eng *gin.Engine) {

	e := eng.Group("/share")
	{
		//图形验证码
		e.POST("/captcha/graphic_captcha", share.Captcha{}.GraphiCaptcha)
		e.GET("/captcha/:captcha_id", share.Captcha{}.Show)
		e.POST("/captcha/verify_graphic_captcha", share.Captcha{}.VerifyGraphiCaptcha)

		//邮件
		e.POST("/mail/sendmail", share.Mail{}.Sendmail)

		//文件上传
		e.POST("/file/upload", share.File{}.Upload)

		//登录退出
		e.POST("/login/login", share.Login{}.Login)
		e.POST("/login/register", share.Login{}.Register)
	}
}
